//
// Created by ub on 2020/11/1.
//
#include <iostream>
#include <string>
using namespace std;
const int SIZE = 5;
void display(const string sa[] , int n);
/*int main ()
{
   string list[SIZE]; // char  * c = "的计算机的"; 这种方式的和string 这种方式有何区别?
   cout << "Enter your " << SIZE << "favorite satronomical sights:\n";
   for (int i=0;i<SIZE;i++)
   {
     cout << i+1 << " :";
     getline(cin,list[i]);
   }
   cout << "Your list:\n";
   display(list,SIZE);
   return 0;
}*/
void display (const string sa[] , int n)
{
   for (int i=0;i<n;++i)
     cout << i+1 << ": " << sa[i] << endl;
}